package com.example.server2.controller;

import com.example.server2.openfeign.Servertst1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/sv2")
public class TestCont {
    @Autowired
    private Servertst1 servertst1;
    @GetMapping("/s2")
    public String s1(@RequestParam("param") String param){
        return servertst1.test1(param);
    }

    @GetMapping("/s21")
    public String s2(){
        return "s21";
    }

    @GetMapping("/s22")
    public String s3(@RequestHeader(value="hd_tok") String hdtok){
        return "s22" + hdtok;
    }
}
